<?php 
/* SVN FILE: $Id$ */
/* Brand Test cases generated on: 2009-05-30 14:05:11 : 1243707911*/
App::import('Model', 'Brand');

class BrandTestCase extends CakeTestCase {
	var $Brand = null;
	var $fixtures = array('app.brand', 'app.good');

	function startTest() {
		$this->Brand =& ClassRegistry::init('Brand');
	}

	function testBrandInstance() {
		$this->assertTrue(is_a($this->Brand, 'Brand'));
	}

	function testBrandFind() {
		$this->Brand->recursive = -1;
		$results = $this->Brand->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Brand' => array(
			'id'  => 1,
			'brand_name'  => 'Lorem ipsum dolor sit amet',
			'brand_logo'  => 'Lorem ipsum dolor sit amet',
			'brand_desc'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'site_url'  => 'Lorem ipsum dolor sit amet',
			'sort_order'  => 1,
			'is_show'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
		));
		$this->assertEqual($results, $expected);
	}
}
?>